import request from '@/utils/request'

export function userManage(url, method = 'post', data, type) {
  let object = {
    url: '/api/user' + url,
    method: method,
  }
  type ? object.params = data : object.data = data;
  return request(object)
}
export function datasync(url, method = 'post', data, type) {
  let object = {
    url: '/api/datasync/equipment' + url,
    method: method,
    // 测试
    // url:"http://192.168.20.96:8003/api/datasync/equipment"+url
  }
  type ? object.params = data : object.data = data;
  return request(object)
}